package com.paul.web.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.Action;
import com.paul.common.entity.User;
import com.paul.service.UserService;

@Controller
public class UserListAction {

	@Autowired
	private UserService userService;

	private List<User> list;

	public String execute() {
		
		list = userService.selectAllUser();
		
		return Action.SUCCESS;
	}

	public List<User> getList() {
		return list;
	}

	public void setList(List<User> list) {
		this.list = list;
	}

}
